package com.rm.zeyou.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 用户评价表
 * </p>
 *
 * @author YanYang
 * @since 2025-03-12 15:55:09
 */
@Getter
@Setter
@TableName("t_user_appraise")
@ApiModel(value = "UserAppraise对象", description = "用户评价表")
public class UserAppraise implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户评论表pk")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("订单编号")
    @TableField("order_no")
    private String orderNo;

    @ApiModelProperty("用户表pk")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("技师表pk")
    @TableField("tid")
    private Long tid;

    @ApiModelProperty("项目ID")
    @TableField("item_id")
    private Long itemId;

    @ApiModelProperty("项目名")
    @TableField("item_name")
    private String itemName;

    @ApiModelProperty("项目图")
    @TableField("item_picture")
    private String itemPicture;

    @ApiModelProperty("项目时长（分钟）")
    @TableField("item_time")
    private Integer itemTime;

    @ApiModelProperty("项目数量")
    @TableField("item_count")
    private Integer itemCount;

    @ApiModelProperty("支付金额")
    @TableField("item_price")
    private BigDecimal itemPrice;

    @ApiModelProperty("评论内容")
    @TableField("comment_text")
    private String commentText;

    @ApiModelProperty("满意度")
    @TableField("satisfaction")
    private BigDecimal satisfaction;

    @ApiModelProperty("评论图片")
    @TableField("comment_picture")
    private String commentPicture;

    @ApiModelProperty("逻辑删除（0=未删除，1=已删除）")
    @TableField("is_delete")
    @TableLogic
    private Integer isDelete;

    @ApiModelProperty("创建时间")
      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("更新时间")
      @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
